package com.myc.subject.domain.convert;

import com.myc.subject.domain.entity.SubjectLabelBO;
import com.myc.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 将BO转为 SubjectLabel的拦截器,使用mapstruct的工厂进行转换
 * */
@Mapper
public interface SubjectLabelBOConverter {

    SubjectLabelBOConverter INSTANCE = Mappers.getMapper(SubjectLabelBOConverter.class);

    SubjectLabel convertBoToLabel(SubjectLabelBO subjectLabelBO);

    List<SubjectLabelBO> convertLabelToBoList(List<SubjectLabel> subjectLabels);


}
